package com.gintama.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data   //生成tostring和get&&set方法
@NoArgsConstructor  //生成无参构造方法
@AllArgsConstructor //生成全部有参构造方法
@TableName("user")
public class User {

    @TableId(type = IdType.AUTO)    //说明是主键
    private Integer id;

    @TableField(value = "name")
    private String name;

    @TableField(value = "email")
    private String email;

}
